<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
	<title><s:property value="title" escape="false"/>-用户登录</title>
	<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
	<link rel='stylesheet' href='../<s:property value="#session.themeStyle.mainCss" default="Skin/EasyClasses/blue/css/style.css"/>'>
	<link rel='stylesheet' href='../<s:property value="#session.themeStyle.path" default="Skin/EasyClasses/blue/"/>/Admin/Admin_Login.css'>
	<script type="text/javascript">
		<!--
		if (window.parent.length>0){
			window.parent.location.href = window.location.href;
		}
		
		var closestr=0;
		function SetFocus() {
		if(document.Login.UserName.value == '')
		  document.Login.UserName.focus();
		else
		  document.getElementById("Password").focus();
		}
		function CheckForm() {
		  if(document.Login.UserName.value == '') {
		    alert('请输入用户名！');
		    document.Login.UserName.focus();
		    return false;
		  }
		 
		  if (document.Login.CheckCode.value == '') {
		    alert ('请输入您的验证码！');
		    document.Login.CheckCode.focus();
		    return(false);
		  }
		}
		function refreshimg(){document.all.checkcode.src='CheckCode.jpg?'+Math.floor(Math.random()*1000+1);}
		//-->
	</script>
</head>
<body onload="SetFocus()">
	[主题类型: ${themeType} 主题风格: ${themeStyle.themeType} 样式文件：${mainCSS}]
	<s:form name='Login' method="post" namespace="/Admin" theme="simple" target='_parent' onsubmit='return CheckForm();' >
	<div id="adminboxall">
	<div class="adminboxtop"></div>
	<div class="adminboxmain"><div class="menu"><label onFocus="undefined"><input style="width: 76px; height: 26px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px;" type="image" src="../Skin/${themeType}/${themeStyle}/Admin/Images/LoginImages/admin_menu.gif"/></label></div></div>
	<div class="adminboxbottom">
		<div id="login">
			<ul><li class=text>用户名：<br/>
			<div class=box1><s:textfield id="UserName" name="user.loginName" value="%{user.loginName}" tabindex="1" maxlength="20" cssClass="boxcontent" cssStyle="width:70px; BORDER-RIGHT: #F7F7F7 0px solid; BORDER-TOP: #F7F7F7 0px solid; FONT-SIZE: 9pt; BORDER-LEFT: #F7F7F7 0px solid; BORDER-BOTTOM: #c0c0c0 1px solid; HEIGHT: 16px; BACKGROUND-COLOR: #F7F7F7" onmouseover="this.style.background='#ffffff';" onmouseout="this.style.background='#F7F7F7'" onfocus="this.select();" />
			</div></li>
			<li class=text>密 码：<br/>
			<div class=box2><s:password id="Password" name="user.password" tabindex="2" maxLength="20" cssClass="boxcontent" cssStyle="width:70px; BORDER-RIGHT: #F7F7F7 0px solid; BORDER-TOP: #F7F7F7 0px solid; FONT-SIZE: 9pt; BORDER-LEFT: #F7F7F7 0px solid; BORDER-BOTTOM: #c0c0c0 1px solid; HEIGHT: 16px; BACKGROUND-COLOR: #F7F7F7" onmouseover="this.style.background='#ffffff';" onmouseout="this.style.background='#F7F7F7'" onfocus="this.select();" />
			</div></li>
			<s:if test="#session.CheckCode!=null">
				<li id=LiSiteManageCode class=text>验证码：<a href='javascript:refreshimg()' title='看不清楚，换个图片'><img id='checkcode' src='CheckCode.jpg' style='border: 1px solid #ffffff' /></a><br/>
				<div class=box3>
				<s:textfield id="CheckCode" name="checkCode" cssClass="boxcontent" size="6" tabindex="3" maxlength="4" cssStyle="width:50px; BORDER-RIGHT: #F7F7F7 0px solid; BORDER-TOP: #F7F7F7 0px solid; FONT-SIZE: 9pt; BORDER-LEFT: #F7F7F7 0px solid; BORDER-BOTTOM: #c0c0c0 1px solid; HEIGHT: 16px; BACKGROUND-COLOR: #F7F7F7; ime-mode:disabled;" onmouseover="this.style.background='#ffffff';" onmouseout="this.style.background='#F7F7F7'" onfocus="this.select();" />
				</div></li>
			</s:if>
			</ul>
		</div>
	</div>
	</div>
	</s:form>
	<script type="text/javascript">SetFocus();</script>
	</body>
</html>
